package com.ktjy.actual.entity;

import org.apache.log4j.Logger;

public class Employee {
    private static final Logger logger = Logger.getLogger(Employee.class);

    private String name; // 姓名
    private Integer age; // 年龄
    private String job; //职业

    public void introduce(){
        logger.debug("大家好,我是"+job+"工程师岗位的"+name+",今年"+age+"岁");
    }


    public Employee() {
    }

    public Employee(String name, Integer age, String job) {
        this.name = name;
        this.age = age;
        this.job = job;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return age
     */
    public Integer getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(Integer age) {
        this.age = age;
    }

    /**
     * 获取
     * @return job
     */
    public String getJob() {
        return job;
    }

    /**
     * 设置
     * @param job
     */
    public void setJob(String job) {
        this.job = job;
    }

    public String toString() {
        return "Employee{name = " + name + ", age = " + age + ", job = " + job + "}";
    }
}
